package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.tencreat.common.core.domain.dto.BaseEntityDTO;


/**
 * 点赞记录对象 mall_praise
 *
 * @Author tencreat
 * @Company: 深圳腾创互联科技有限公司
 * @link: https://tencreat.com
 * @Date 2022-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_praise")
public class MallPraise extends BaseEntityDTO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "用户表的用户ID")
    @ApiModelProperty(value= "用户表的用户ID")
    @TableField("`user_id`")
    private Long userId;

    @Excel(name = "业务ID")
    @ApiModelProperty(value= "业务ID")
    @TableField("`value_id`")
    private Long valueId;

    @Excel(name = "点赞类型 0-资讯")
    @ApiModelProperty(value= "点赞类型 0-资讯")
    @TableField("`type`")
    private Integer type;

    @TableField("`create_by`")
    private String createBy;

    @TableField("`create_time`")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField("`update_by`")
    private String updateBy;

    @TableField("`update_time`")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
